package cn.edu.nuc.ssm.entity;

import java.math.BigDecimal;

public class AccountTransfer {
    private Integer id;

    private Integer uid;

    private Integer accountInId;

    private Integer accountOutId;

    private String transferDate;

    private BigDecimal transferMoney;

    private String detail;

    public AccountTransfer() {
    }

    public AccountTransfer( Integer uid, Integer accountInId, Integer accountOutId, String transferDate, BigDecimal transferMoney, String detail) {

        this.uid = uid;
        this.accountInId = accountInId;
        this.accountOutId = accountOutId;
        this.transferDate = transferDate;
        this.transferMoney = transferMoney;
        this.detail = detail;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getAccountInId() {
        return accountInId;
    }

    public void setAccountInId(Integer accountInId) {
        this.accountInId = accountInId;
    }

    public Integer getAccountOutId() {
        return accountOutId;
    }

    public void setAccountOutId(Integer accountOutId) {
        this.accountOutId = accountOutId;
    }

    public String getTransferDate() {
        return transferDate;
    }

    public void setTransferDate(String transferDate) {
        this.transferDate = transferDate == null ? null : transferDate.trim();
    }

    public BigDecimal getTransferMoney() {
        return transferMoney;
    }

    public void setTransferMoney(BigDecimal transferMoney) {
        this.transferMoney = transferMoney;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail == null ? null : detail.trim();
    }

    @Override
    public String toString() {
        return "AccountTransfer{" +
                "id=" + id +
                ", uid=" + uid +
                ", accountInId=" + accountInId +
                ", accountOutId=" + accountOutId +
                ", transferDate='" + transferDate + '\'' +
                ", transferMoney=" + transferMoney +
                ", detail='" + detail + '\'' +
                '}';
    }
}